// 首页
import axios from '@/api/request/request'

// 所有
const menusAll = (option: any) => {
  return axios.get('/menus/all', { ...option })
}

// 保存
const menusSave = (option: any) => {
  return axios.post('/menus/save', { ...option })
}

// 删除
const menusDelete = (option: any) => {
  return axios.get('/menus/delete', { ...option })
}

// 批量更新
const batchUpdate = (option: any) => {
  return axios.post('/menus/batchUpdate', option)
}

export { menusAll, menusSave, menusDelete, batchUpdate }
